package com.cwf.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.cwf.basic.domain.BaseDomain;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.servlet.ServletOutputStream;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Api(value = "员工类", description = "员工实体类信息")
public class Employee extends BaseDomain implements Serializable {
    @ApiModelProperty(value = "员工ID")
    @Excel(name = "序号")
    private Long id;
    @Excel(name = "员工账号", orderNum = "1", fixedIndex = 1)
    @ApiModelProperty(value = "员工账号")
    private String username;
    @Excel(name = "员工密码", orderNum = "2", fixedIndex = 2)
    @ApiModelProperty(value = "员工密码")
    private String password;
    @Excel(name = "员工邮箱", orderNum = "3", fixedIndex = 3)
    @ApiModelProperty(value = "员工邮箱")
    private String email;
    @Excel(name = "员工头像", orderNum = "4", fixedIndex = 4)
    @ApiModelProperty(value = "员工头像")
    private String headImage;
    @Excel(name = "员工年龄", orderNum = "5", fixedIndex = 5)
    @ApiModelProperty(value = "员工年龄")
    private Integer age;
    @ExcelEntity
    @ApiModelProperty(value = "员工部门")
    private Department department;
}
